package com.bwie.service.impl;

import cn.hutool.core.lang.Dict;
import com.bwie.mapper.DictMapper;
import com.bwie.pojo.R;
import com.bwie.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DictServiceImpl implements DictService {
    @Autowired
    private DictMapper dictMapper;
    @Override
    public R getDictList(String dictType) {
        List<Dict> list = dictMapper.getDictList(dictType);
        return R.ok().data(list);
    }
}
